package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 服务收费表
 * </p>
 *
 * @author LX
 * @since 2018-09-15
 */
@TableName("erp_project")
public class ErpProject extends Model<ErpProject> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 日期
     */
    @TableField("project_date")
    private Date projectDate;
    /**
     * 服务项目
     */
    @TableField("project_name")
    private String projectName;
    /**
     * 数量
     */
    @TableField("project_num")
    private Integer projectNum;
    /**
     * 金额
     */
    @TableField("project_money")
    private Integer projectMoney;
    /**
     * 单位
     */
    @TableField("project_unit")
    private String projectUnit;
    /**
     * 经办人
     */
    @TableField("project_attn")
    private String projectAttn;
    /**
     * 备注
     */
    @TableField("bz")
    private String bz;

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    private  transient  Integer custId;

    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }

    public List<com.monitor.entity.ErpProject> getErpProject() {
        return ErpProject;
    }

    public void setErpProject(List<com.monitor.entity.ErpProject> erpProject) {
        ErpProject = erpProject;
    }

    private  transient  List<ErpProject> ErpProject;

    private transient List<ErpProjectList> projectLists;


    public List<ErpProjectList> getProjectLists() {
        return projectLists;
    }

    public void setProjectLists(List<ErpProjectList> projectLists) {
        this.projectLists = projectLists;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getProjectDate() {
        return projectDate;
    }

    public void setProjectDate(Date projectDate) {
        this.projectDate = projectDate;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getProjectNum() {
        return projectNum;
    }

    public void setProjectNum(Integer projectNum) {
        this.projectNum = projectNum;
    }

    public Integer getProjectMoney() {
        return projectMoney;
    }

    public void setProjectMoney(Integer projectMoney) {
        this.projectMoney = projectMoney;
    }

    public String getProjectUnit() {
        return projectUnit;
    }

    public void setProjectUnit(String projectUnit) {
        this.projectUnit = projectUnit;
    }

    public String getProjectAttn() {
        return projectAttn;
    }

    public void setProjectAttn(String projectAttn) {
        this.projectAttn = projectAttn;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpProject{" +
        ", id=" + id +
        ", projectDate=" + projectDate +
        ", projectName=" + projectName +
        ", projectNum=" + projectNum +
        ", projectMoney=" + projectMoney +
        ", projectUnit=" + projectUnit +
        ", projectAttn=" + projectAttn +
        "}";
    }
}
